package com.springcloud.movieservice.clients;

import com.springcloud.movieservice.pojo.Author;
import org.springframework.stereotype.Component;

@Component
public class AuthorServiceClientFallBack implements AuthorServiceClient{
    @Override
    public Author getById(Integer id) {
        Author author = new Author();
        author.setName("服务器异常！！！");
        author.setId(-1);
        return author;
    }
}
